<?php

use app\devices\command\CheckDevice;
use app\devices\command\CheckOrder;
use app\devices\command\SendToSocket;
use app\devices\command\SendStartSocket;
use app\devices\command\ClearOrderCache;
use think\Console;

Console::starting(function (Console $console) {
    if (app()->request->isCli()) {
        $console->addCommand(CheckDevice::class);
        $console->addCommand(CheckOrder::class);
        $console->addCommand(SendToSocket::class);
        $console->addCommand(SendStartSocket::class);
        $console->addCommand(ClearOrderCache::class);
    }
});